package jsi.spring;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SumOfSquaresWriterImpl implements ISumOfSquaresWriter {
	
	
	public SumOfSquaresWriterImpl(){
	}
	
	Log log = LogFactory.getLog(this.getClass());
	public IIntegerWriter a, b;

	public void setA(IIntegerWriter a) {
		this.a = a;
	}

	public void setB(IIntegerWriter b) {
		this.b = b;
	} /*
		 * (non-Javadoc)
		 * 
		 * @see jsi.spring.ISumOfSquaresWriter#sumOfSquares()
		 */

	public void sumOfSquares() {
		System.out.println(a.square() + b.square());
	}
}